package com.example.mykotlin.model.dto

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size
@Schema(name = "InsertPermissionRoles", title = "权限新增角色")
data class InsertPermissionRolesDTO(
    @Schema(title = "角色的唯一标识符")
    @field:Size(max = 128, message = "长度不能超过128")
    @field:NotBlank(message = "不能为空")
    var permissionId: String? = null,

    @Schema(title = "需要增加的角色主键列表")
    var addRoleList: MutableSet<String>? = null,

    @Schema(title = "需要移除的角色主键列表")
    var removeRoleList: MutableSet<String>? = null,
)
